#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

extern "C"
{
#include "daq331m.h"
}

// #define USE_MODBUS
#define USE_TCP_CLIENT
// #define USE_RS485

QT_BEGIN_NAMESPACE
namespace Ui
{
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

  public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

  private slots:
    void on_ConnectPushButton_clicked();
    void on_DCPushButton_clicked();
    void on_ACPushButton_clicked();

  private:
    Ui::Widget *ui;
    daq331m_ptr daq331m_;
};
#endif // WIDGET_H
